package edu.fiu.cis.personalize.server.graph.update;

import edu.fiu.cis.personalize.server.graph.Document;
import edu.fiu.cis.personalize.server.graph.NodeType;
import edu.fiu.cis.personalize.server.graph.Query;

public class DocumentQueryUpdate extends GraphUpdate<Document, Query> {

	private QueryDocumentUpdate _delegate = new QueryDocumentUpdate();

	@Override
	protected double computeWeight(Document d, Query q) {
		return _delegate.computeWeight(q, d);
	}

	@Override
	NodeType type1() {
		return _delegate.type2();
	}

	@Override
	NodeType type2() {
		return _delegate.type1();
	}

}
